package com.goldfish666.remote_control.template;

import com.goldfish666.remote_control.dto.common.ButtonDTO;
import com.goldfish666.remote_control.dto.common.ByteValueDTO;
import com.goldfish666.remote_control.entity.tv.TVModel;
import com.tuyang.beanutils.annotation.BeanCopySource;
import com.tuyang.beanutils.annotation.CopyCollection;

import java.util.List;

@BeanCopySource(source = TVModel.class)
public class TVModelEntity2DTO {

    @CopyCollection(targetClass = ButtonDTO.class, optionClass = ButtonEntity2DTO.class)
    private List<ButtonDTO> buttons;

    @CopyCollection(targetClass = ByteValueDTO.class, optionClass = ByteValueEntity2DTO.class)
    private List<ByteValueDTO> common;

}
